package com.scoresystem.web.ui.view;

/**
 * 
 * @author Administrator
 *实现IShowable类的 实例创建工厂
 */
public class ViewFactory {
private static ViewFactory instance=null;
	
	private ViewFactory(){}
	
	public synchronized static ViewFactory getInstance() {
		if (instance == null) {
			instance = new ViewFactory();
		}

		return instance;
	}
	/**
	 * 创建ShowListView
	 * @return
	 */
	public static IShowable createShowListView(){
		IShowable showable=new ShowListView();
		return showable;
	}
	/**
	 * 创建教师主界面类
	 * @return
	 */
	public static IShowable createShowTeacherMainView(){
		IShowable showable=new ShowTeacherMainView();
		return showable;
	}
	
	public static IShowable createShowAdminMainView(){
		IShowable showable=new ShowAdminMainView();
		return showable;
	}
	
	public static IShowable createShowStudentMainView(){
		IShowable showable=new ShowStudentMainView();
		return showable;
	}
	
	public static IShowable createShowUpdatePasswordView(){
		IShowable showable=new ShowUpdatePasswordView();
		return showable;
	}
	
	public static IShowable createShowInsertStuView(){
		IShowable showable=new ShowInsertStuView();
		return showable;
	}
	
	public static IShowable createShowUpdateStuView(){
		IShowable showable=new ShowUpdateStuView();
		return showable;
	}
	
	public static IShowable createShowStuQueryView(){
		IShowable showable=new ShowStuQueryView();
		return showable;
	}
	
	public static IShowable createShowInsertTeaView(){
		IShowable showable=new ShowInsertTeaView();
		return showable;
	}
	
	public static IShowable createShowDelStuView(){
		IShowable showable=new ShowDelStuView();
		return showable;
	}
	
	public static IShowable createShowTeaLookOutView(){
		IShowable showable=new ShowTeaLookOutView();
		return showable;
	}
	
	public static IShowable createShowInsertScoreView(){
		IShowable showable=new ShowInsertScoreView();
		return showable;
	}
	
	public static IShowable createShowStuScoreView(){
		IShowable showable=new ShowStuScoreView();
		return showable;
	}
	
	public static IShowable createShowStuRemarkView(){
		IShowable showable=new ShowStuRemarkView();
		return showable;
	}
	
	public static IShowable createShowLookOutRemarkView(){
		IShowable showable=new ShowLookOutRemarkView();
		return showable;
	}
	
	public static IShowable createShowTeaUpdateScoreView(){
		IShowable showable=new ShowTeaUpdateScoreView();
		return showable;
	}
	
}
